'''
   断言
'''

import pytest_check as c


def check_equal(real, exp, keys):
    for key in keys:  # 遍历每个key
        r = real.get(key)  # real[key]
        e = exp.get(key)  # 根据key取字典中的value

        if c.equal(r, e) == True:
            print(f"校验{key}成功，实际结果为：{r}，预期结果为：{e}")
        else:
            print(f"校验{key}失败，实际结果为：{r}，预期结果为：{e}")
